import request from '@/utils/request'

export function carApiLogin(account, password) {
  return request({
    url: '/car-api/StandardApiAction_login.action?account=' + account + '&password=' + password,
    method: 'get',
  })
}

export function getCarFacility(jsession) {
  return request({
    url: '/car-api/StandardApiAction_getDeviceStatus.action?jsession=' + jsession + '&toMap=2',
    method: 'get'
  })
}

export function getCarVideo(jsession, devIdno) {
  return request({
    url: '/car-api/808gps/open/player/video.html?jsession=' + jsession + '&devIdno=' + devIdno + '&channel=1&lang=zh',
    method: 'get'
  })
}

export function getCarTrack(params) {
  return request({
    url: '/car-api/StandardApiAction_queryTrackDetail.action',
    method: 'get',
    params: params
  })
}
